package com.wendy.web.response;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhuwending
 */
@Data
public class ResponseWrapper {

    private int status;
    private Map<String, Object> dataWrapper = new HashMap<>();
    private String msg;
    private boolean isSuccess;
    private String sourceUrl;

    public void addAttribute(String key, Object object) {
        this.dataWrapper.put(key, object);
    }

    public void removeAttribute(String key) {
        this.dataWrapper.remove(key);
    }
}
